from rest_framework.viewsets import ModelViewSet
from meiduo_admin.my_paginate import MyPageNumberPagination
from meiduo_admin.serializer import goods_channels_serializer
from goods.models import GoodsChannel



class GoodsChannelsView(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class =goods_channels_serializer.GoodsChannelsView
    queryset = GoodsChannel.objects.all()